package com.haiqiu.common.swagger;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @author HaiQiu
 * @date 2021/4/2 21:57
 * @desc swagger配置
 **/

@Component
@ConfigurationProperties("swagger")
public class SwaggerProperties {
    /**
     * 是否开启swagger，生产环境一般关闭，所以这里定义一个变量
     */
    private Boolean enable;


    /**
     * 项目应用名
     */
    private String applicationName;


    /**
     * 项目版本信息
     */
    private String applicationVersion;


    /**
     * 项目描述信息
     */
    private String applicationDescription;

    /**
     * 包扫描路径
     */
    private String basePackage;


    /**
     * 接口调试地址
     */
    private String tryHost;

    /**
     * 接口调试地址
     */
    private String developer;

    /**
     * 接口调试地址
     */
    private String email;

    /**
     * 接口调试地址
     */
    private String url;


    public Boolean getEnable() {
        return enable;
    }


    public void setEnable(Boolean enable) {
        this.enable = enable;
    }


    public String getApplicationName() {
        return applicationName;
    }


    public void setApplicationName(String applicationName) {
        this.applicationName = applicationName;
    }


    public String getApplicationVersion() {
        return applicationVersion;
    }


    public void setApplicationVersion(String applicationVersion) {
        this.applicationVersion = applicationVersion;
    }


    public String getApplicationDescription() {
        return applicationDescription;
    }


    public void setApplicationDescription(String applicationDescription) {
        this.applicationDescription = applicationDescription;
    }


    public String getTryHost() {
        return tryHost;
    }


    public void setTryHost(String tryHost) {
        this.tryHost = tryHost;
    }

    public String getBasePackage() {
        return basePackage;
    }

    public void setBasePackage(String basePackage) {
        this.basePackage = basePackage;
    }

    public String getDeveloper() {
        return developer;
    }

    public void setDeveloper(String developer) {
        this.developer = developer;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }
}
